<?php
require_once 'class/staff.php';
session_start();
$response = "";

if(isset($_SESSION['staff'])){
    $staff = unserialize($_SESSION['staff']);
}
if(isset($_REQUEST['dutyArray'])){
    $staffDutyArray = $_REQUEST['dutyArray'];
}else{
    $staffDutyArray=null;
}
if(isset($_REQUEST['ExceptDateArray'])){
    $staffExceptArray = $_REQUEST['ExceptDateArray'];
}else{
    $staffExceptArray=null;
}


$staffTemp = new staff($staff->getEmail(), $staff->getPW());
$response = $staffTemp->initialStaffData($staffDutyArray, $staffExceptArray);
echo $response;
?>
